import request from '@/utils/request'

// 查询荣誉墙列表
export function listHonor(query) {
  return request({
    url: '/mcx/honor/list',
    method: 'get',
    params: query
  })
}

// 查询荣誉墙详细
export function getHonor(id) {
  return request({
    url: '/mcx/honor/' + id,
    method: 'get'
  })
}

// 新增荣誉墙
export function addHonor(data) {
  return request({
    url: '/mcx/honor',
    method: 'post',
    data: data
  })
}

// 修改荣誉墙
export function updateHonor(data) {
  return request({
    url: '/mcx/honor',
    method: 'put',
    data: data
  })
}

// 删除荣誉墙
export function delHonor(id) {
  return request({
    url: '/mcx/honor/' + id,
    method: 'delete'
  })
}
